From: Debian Multimedia Maintainers Date: Mon, 2 Sep 2019 11:35:55 +0000 (+0200) Subject: made it compile with RtAudio-4.1.1 X-Git-Tag: archive/raspbian/2.5.1+ds-1+rpi1~1^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=26ca99b10b6072fa25f7d518fdea2f87bda190de;p=jacktrip.git made it compile with RtAudio-4.1.1 Origin: https://github.com/jcacerec/jacktrip/commit/83fbb337 Applied-Upstream: 83fbb337266e4ba17828db746955a2b83ae0248d Reviewed-by: IOhannes m zmölnig Last-Update: 2015-06-28 RtAudio has changed the exception class from RtError to RtAudioError Last-Update: 2015-06-28 Gbp-Pq: Name rtaudio411.patch --- diff --git a/src/RtAudioInterface.cpp b/src/RtAudioInterface.cpp index 3add762..a08c8a7 100644 --- a/src/RtAudioInterface.cpp +++ b/src/RtAudioInterface.cpp @@ -123,7 +123,7 @@ void RtAudioInterface::setup() sampleRate, &bufferFrames, &RtAudioInterface::wrapperRtAudioCallback, this, &options); } - catch ( RtError& e ) { + catch ( RtAudioError& e ) { std::cout << '\n' << e.getMessage() << '\n' << std::endl; exit( 0 ); } @@ -213,7 +213,7 @@ int RtAudioInterface::wrapperRtAudioCallback(void *outputBuffer, void *inputBuff int RtAudioInterface::startProcess() const { try { mRtAudio->startStream(); } - catch ( RtError& e ) { + catch ( RtAudioError& e ) { std::cout << '\n' << e.getMessage() << '\n' << std::endl; return(-1); } @@ -225,7 +225,7 @@ int RtAudioInterface::startProcess() const int RtAudioInterface::stopProcess() const { try { mRtAudio->closeStream(); } - catch ( RtError& e ) { + catch ( RtAudioError& e ) { std::cout << '\n' << e.getMessage() << '\n' << std::endl; return(-1); }